Remove warning during device discovery as increasing number of garmins
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Tue, 14 Sep 2004 14:29:59 +0000 (14:29 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Tue, 14 Sep 2004 14:29:59 +0000 (14:29 +0000)
do this...

gpsbabel/jeeps/gpsapp.c

index 9322b082a01df176c5820934452ca3b9c7f5625b..8fcd7df7808a2cd5dcd9bccdef326dfb7821dfac 100644 (file)
@@ -215,17 +215,17 @@ static int32 GPS_A000(const char *port)
     else
     {
         int maxct = 3;
+       /*
+        * The unit may return more than one packet, so read and
+        * discard all but the product inquiry response.
+        */
        while (maxct--) {
-               char pb[256];
                (void) GPS_Packet_Read(fd, &rec);
                GPS_Send_Ack(fd, &tra, &rec);
                if (rec->type == 0xfd) {
                        GPS_A001(rec);
                        break;
                }
-               snprintf(pb, sizeof(pb), "Ignoring unknown packet 0x%x.", 
-                               rec->type);
-               GPS_Warning(pb);
        }
     }